#include"list.h"

int main(void)
{ 
     node * list = list_init();
     int arr[]= {1,1,1,2,4,4};
     int n = sizeof(arr) / sizeof(*arr);

     list_create(list, arr, n);
     list_show(list);

     node *ptr = list_locate(list, 6);
     printf("num = %d\n", ptr->data);

     int x = 3;
     int count = list_number(list,x);
     printf("count = %d\n",count);

     ptr = list_max(list);
     printf("max = %d\n", ptr->data);

     tidyup(list);
     list_show(list);

     return 0;
}
